package com.gtt.jr.action.admin;

import javax.annotation.Resource;

import com.gtt.jr.action.base.BaseModelAction;
import com.gtt.jr.action.model.IdModel;
import com.gtt.jr.app.ContainerRepository;

/**
 * 集装箱删除
 * 
 * @author 高甜甜(gao12581@sina.com)
 * @date 2010-9-13
 * 
 */
public class ContainerDeleteAction extends BaseModelAction<IdModel> {

	private static final long serialVersionUID = 1948651858414363528L;

	@Resource
	private ContainerRepository containerRepository;
	
	@Override
	public String execute() throws Exception {
		containerRepository.del(getModel().getId());
		return JSON;
	}
}
